import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './utils/element'
// import echarts from 'echarts'
import './style/base.css'
import 'element-ui/lib/theme-chalk/index.css'
import '@/permission'

// Vue.prototype.$echarts = echarts
Vue.config.productionTip = false
Vue.directive('focus', {
  bind() {},
  inserted(el) {
    el.querySelector('input').focus()
  },
  update() {},
  componentUpdated() {},
  unbind() {}
})
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
